package com.ruoyi.ruoyixingyue.modules.api.controller;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.utils.page.PageData;
import com.ruoyi.ruoyixingyue.modules.api.po.StudentListPo;
import com.ruoyi.ruoyixingyue.modules.api.service.IStudentService;
import com.ruoyi.ruoyixingyue.modules.api.vo.StudentListVo;
import com.ruoyi.ruoyixingyue.modules.api.vo.StudentStatusVo;
import com.ruoyi.ruoyixingyue.modules.api.vo.TeacherStatusVo;
import com.ruoyi.ruoyixingyue.modules.utils.Condition;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 星月学生表 前端控制器
 * </p>
 *
 * @author lzz
 * @since 2024-02-18
 */
@Api("学生数据维护")
@RestController
@RequestMapping("/student")
public class StudentController {

    @Autowired
    private IStudentService iStudentService;

    @ApiOperation("学生list")
    @PostMapping("/student/list/API_001")
    public R<PageData<StudentListPo>> studentListAPI_001(@RequestBody Condition<StudentListVo> condition) {
        return iStudentService.studentListAPI_001(condition);
    }

    @ApiOperation("修改学生状态")
    @PostMapping("/student/updateStatus/API_002")
    public R<String> studentUpdateStatusAPI_002(@RequestBody StudentStatusVo studentStatusVo) {
        return iStudentService.studentUpdateStatusAPI_002(studentStatusVo);
    }

}
